package com.yidu.best.systemManagement.Authority.dao;

import java.util.List;
import java.util.Map;


import com.yidu.best.systemManagement.Authority.domain.AuthorityResource;
import com.yidu.best.systemManagement.Authority.domain.AuthorityRole;
import com.yidu.best.systemManagement.Authority.domain.AuthorityRoleResource;
import com.yidu.best.systemManagement.Authority.domain.AuthorityUser;
import com.yidu.best.systemManagement.Authority.domain.AuthorityUserRole;

public interface AuthorityDao {
	
	List<AuthorityUser> queryUserWithRole();
	List<AuthorityUser> queryUserWithRoles(Map<String, Object> map);
	
	List<AuthorityUser> queryUserWithRoleById(String userId);
	
	List<AuthorityRole> selectRoleName();
	
	int setUserRole(AuthorityUserRole authorityUserRole);
	
	int updateRoleName(AuthorityUserRole authorityUserRole);
	
	List<AuthorityResource> queryRoleResource(AuthorityResource authorityResource);
	
	List<AuthorityRole> queryRoleWithResource();
	
	int updateUseable(AuthorityUser authorityUser);
	
	int addRoleByResource(AuthorityRoleResource authorityRoleResource);
	
	int deleteRoleByResource(String roleId);
	
	List<AuthorityResource> selectUserInRoleByResource(String userName);
}
